package com.chaopei.znpk.mapper;

import com.chaopei.znpk.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;

/**
* @author 28458
* @description 针对表【teacher】的数据库操作Mapper
* @createDate 2022-05-18 10:49:47
* @Entity com.chaopei.znpk.entity.Teacher
*/
@Repository
public interface TeacherMapper{
    void queryTeacherFenpei(@Param("teacher_id") String teacher_id,@Param("fenpei") Integer fenpei);
    void queryTeacherAll();

    int addTeacher(@Param("teacher")Teacher teacher) throws SQLIntegrityConstraintViolationException;
    List<Teacher> getTeacherList(@Param("teacher") Teacher teacher);
}




